<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<script src="../scripts/2dcanvas.js"></script>
<script type="text/javascript">

	function init(){
		var canvas = document.getElementById("myCanvas");
		var cxt = canvas.getContext("2d");
		cxt.fillStyle = "#FF0000";
		//cxt.fillRect(0,0,150,75);
		
		var c = new Canvas('myCanvas');
		c.drawPath('M146,123L560,115L362,362L169,311Z', '#9f9');
		c.drawRoundRect(20,20,200,120,20);
	}
	
</script>
</head>

<body onload="init()">
	<canvas id="myCanvas" width="600" height="500"></canvas>
</body>
</html>
